/* 
store对象模块
*/
import Vue from 'vue'
import Vuex from 'vuex'

import counter from './modules/counter'
import other from './modules/other'


Vue.use(Vuex) // 安装vue插件vuex

export default new Vuex.Store({
  modules: {
    counter,
    other
  }
})

/* 
总state的结构:
{
  counter: {
    count: 0
  },
  other: {
    xxx: {},
    yyy: []
  }
}
*/